<?php
session_start();
ob_start();
?>
<body>
    <?php

    function View() { ?>
        <?php
        require_once '../model/works.php';
        $works = new works();
        $work = $works->select_edit(NULL, $_GET['id_keyword']);
        ?>
        <form   method="post" enctype="multipart/form-data">
            <table align="center">
                <tr>
                    <th>ten cong viec</th>
                    <td><?php echo $work["name"] ?></td>
                </tr>
                <tr>
                    <th>Ngay dang</th>
                    <td><?php $mydate = getdate($work['posted']); ?> 
                        <?php echo "$mydate[mday] $mydate[month], $mydate[year]"; ?></td>
                </tr>
                <tr>
                    <th>Lam viec tai</th>
                    <td><?php echo $work["location"] ?></td>
                </tr>
                <tr>
                    <th>Ten cong ty</th>
                    <td><?php echo $work["company_name"] ?></td>
                </tr>
                <tr>
                    <th>Dia chi</th>
                    <td><?php echo $work["company_address"] ?></td>
                </tr>
                <tr>
                    <th>mo ta cong viec</th>
                    <td><?php echo $work["description"] ?></td>
                </tr>
                <tr>
                    <th>Dieu kien</th>
                    <td><?php echo $work["experience_requirements"] ?></td>
                </tr>
                <tr>
                    <th>Lien he</th>
                    <td><?php echo $work["company_profile"] ?></td>
                </tr>
                <tr>
                    <th>Hinh anh</th>
                    <td><img src="<?php echo $work['image'] ?>" width="100px" height="100px"></td>
                </tr>
            </table>
        </form>

    <?php } ?>
</body>
</html>
